#include <stdio.h>

int main() {
    char ch;
    while ((ch = getchar()) != '\n') { 
        if (ch == 'C' || ch == 'c') {
            printf("BEIJING OLYMPIC GAMES\n");
        } else if (ch == 'J' || ch == 'j') {
            printf("JAPAN WORLD CUP\n");
        } else if (ch == 'K' || ch == 'k') {
            printf("KOREA WORLD CUP\n");
        } else {
            printf("%c\n", ch);
        }
    }
    return 0;
}
